public void runTest() { MockMe mock = new MockMe(); HelloWorld helloWorld = new HelloWorld(mock); Assert.AreEqual("Hello World", helloWorld.run()); }
public string DoSomethingWithMyInterfaceTest( [PexAssumeUnderTest] InterfaceConsumer target, MockMe zieJeWel ) { //PexAssume.IsNotNull(zieJeWel); string result = target.DoSomethingWithMyInterface(zieJeWel); return(result); // TODO: add assertions to method InterfaceConsumerTest.DoSomethingWithMyInterfaceTest(InterfaceConsumer, MyInterface) }
public string DoSomethingWithMyInterfaceTest([PexAssumeUnderTest] InterfaceConsumer target, MockMe mockMe) { string result = target.DoSomethingWithMyInterface(mockMe); return(result); }
public string DoSomethingWithMyInterface(MockMe mockMe) { return(mockMe.GetString() + mockMe.GetInteger().ToString()); }