I am new to the framework so I guess it is just something I did not do before invoke the test case using MSTEST.
Created the test as following
public class Foo
{
public static int Execute(int arg) { throw new NotImplementedException(); }
}
[TestMethod]
public void TestMethod1()
{
Mock.SetupStatic<Foo>(Behavior.Strict);
Mock.Arrange(() => Foo.Execute(0)).Returns(10);
Foo.Execute(0);
}
Got a passed test case within VS2012 environment.
When I do commandline "mstest /testcontainer:test.dll", the case failed. Anything I need to do before running MSTEST?
Thanks.
Created the test as following
public class Foo
{
public static int Execute(int arg) { throw new NotImplementedException(); }
}
[TestMethod]
public void TestMethod1()
{
Mock.SetupStatic<Foo>(Behavior.Strict);
Mock.Arrange(() => Foo.Execute(0)).Returns(10);
Foo.Execute(0);
}
Got a passed test case within VS2012 environment.
When I do commandline "mstest /testcontainer:test.dll", the case failed. Anything I need to do before running MSTEST?
Thanks.