Esempio n. 1
0
        public static TestClass CreateWithSubClass()
        {
            TestClass target = Create(DateTime.Now);

            target.InnerClass = TestSubClass.Create();
            return(target);
        }
Esempio n. 2
0
		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);
		}
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
		public new static TestSubClass Create()
		{
			TestSubClass sub = new TestSubClass();
			sub.SubZero = -40;
			sub.InnerName = "sub";
			sub.Present = "here";
			return sub;
		}
Esempio n. 5
0
        public new static TestSubClass Create()
        {
            TestSubClass sub = new TestSubClass();

            sub.SubZero   = -40;
            sub.InnerName = "sub";
            sub.Present   = "here";
            return(sub);
        }