This project is read-only.
MSTest

Category:
MSTest
Description: Define and execute a unit test. You can use mstest.exe /testcontainer:SampleProject.exe to execute the test case.
Code:
// To use MSTest, please make sure to
// * include Microsoft.VisualStudio.QualityTools.UnitTestFramework reference
// * open Microsoft.VisualStudio.TestTools.UnitTesting namespace

[<TestClass>]
type Test() =

[<TestMethod>]
member this.Test1() =
Assert.AreEqual(1, 1)

[<TestMethod>]
member this.Test2() =
Assert.Greater(2,1)

let msTest() =
let T = Test()
T.Test1()
Execution Result:
both elements are equal

Last edited Sep 14, 2011 at 4:32 AM by ttliu2000, version 2

Comments

No comments yet.