public static TestClass CreateWithSubClass() { TestClass target = Create(DateTime.Now); target.InnerClass = TestSubClass.Create(); return(target); }
public static void AssertEquals(TestSubClass expected, TestSubClass actual) { Assert.AreEqual(expected.InnerName, actual.InnerName); Assert.AreEqual(expected.Missing, actual.Missing); Assert.AreEqual(expected.Present, actual.Present); Assert.AreEqual(expected.SubZero, actual.SubZero); }
public static void AssertEquals(TestSubClass expected, TestSubClass actual) { Assert.AreEqual(expected.InnerName, actual.InnerName); Assert.AreEqual(expected.Missing, actual.Missing); Assert.AreEqual(expected.Present, actual.Present); Assert.AreEqual(expected.SubZero, actual.SubZero); }
public new static TestSubClass Create() { TestSubClass sub = new TestSubClass(); sub.SubZero = -40; sub.InnerName = "sub"; sub.Present = "here"; return sub; }
public new static TestSubClass Create() { TestSubClass sub = new TestSubClass(); sub.SubZero = -40; sub.InnerName = "sub"; sub.Present = "here"; return(sub); }