public void TestService () { IncludeTest test = new IncludeTest(); object[] data = test.foo (); Assert.IsNotNull (data); ComplexThing c1 = data[0] as ComplexThing; Assert.IsNotNull (c1); Assert.AreEqual ("abc",c1.name); ComplexThing c2 = data[1] as ComplexThing; Assert.IsNotNull (c2); Assert.AreEqual ("xyz",c2.name); }
public void TestService() { IncludeTest test = new IncludeTest(); object[] data = test.foo(); Assert.IsNotNull(data); ComplexThing c1 = data[0] as ComplexThing; Assert.IsNotNull(c1); Assert.AreEqual("abc", c1.name); ComplexThing c2 = data[1] as ComplexThing; Assert.IsNotNull(c2); Assert.AreEqual("xyz", c2.name); }