Skip to content

Commit 1d3a019

Browse files
fsharp-tests
1 parent 62d1266 commit 1d3a019

File tree

122 files changed

+2155
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2155
-322
lines changed

fsharp-email-mstest/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-include ../.env
2+
3+
install:
4+
dotnet restore
5+
dotnet build
6+
7+
test:
8+
API_KEY=$(API_KEY) dotnet test
9+

fsharp-email-mstest/fsharp-email-mstest/Tests.fs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ namespace fsharp_email_mstest
22

33
open System
44
open Microsoft.VisualStudio.TestTools.UnitTesting
5+
open mailslurp.Client
56

67
[<TestClass>]
78
type TestClass () =
89

910
[<TestMethod>]
1011
member this.TestMethodPassing () =
11-
Assert.IsTrue(true);
12+
let apiKey = Environment.GetEnvironmentVariable("API_KEY")
13+
Assert.IsNotNull(apiKey)
14+
let config = Configuration()
15+
config.ApiKey.Add("x-api-key", apiKey);
16+
Assert.IsTrue(true)
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)