예제 #1
0
        public void PassWhenSameReferences()
        {
            var object1 = new object();
            var object2 = object1;

            AssertAll.AreSame(object1, object2, "these are not the same");
            AssertAll.Execute();
        }
예제 #2
0
        public void FailWhenDifferentReferences()
        {
            var object1 = new object();
            var object2 = new object();

            AssertAll.AreSame(object1, object2, "these are not the same");

            Assert.ThrowsException <AssertAllFailedException>(() => AssertAll.Execute());
        }