Exemple #1
0
        public void TestEqual_Obj_NoParams()
        {
            // Test pass
            Object obj = new Dummy();
            Assert.Equal(obj, obj);

            // Test fail
            Assert.ExpectException(new TestException("Expected " + obj.GetType() + ", Got 3"));
            Assert.Equal(obj, 3);
        }
Exemple #2
0
        public void TestEqual_Obj_Null_NoParams()
        {
            // Test pass
            Object obj = new Dummy();
            Assert.Equal((object)null, null);

            // Test fail
            Assert.ExpectException(new TestException("Expected , Got " + obj.GetType()));
            Assert.Equal(null, obj);
        }
Exemple #3
0
        public void TestEqual_Obj()
        {
            // Test pass
            Object obj = new Dummy();
            Assert.Equal(obj, obj, null);

            // Test fail
            Assert.ExpectException(new TestException("Failed"));
            Assert.Equal(obj, 3, "Failed");
        }
Exemple #4
0
        public void TestAddAll()
        {
            Dummy test = new Dummy();

            m_suite.AddAll(test);
        }