public void ConstructorTest1()
        {
            string message   = "message";
            var    exception = new PhysicsException(message);

            Assert.AreEqual("message", exception.Message);
        }
예제 #2
0
        public void Test_PhysicsException_A()
        {
            PhysicsException ex = new PhysicsException();

            StringAssert.Contains("Exception of type", ex.Message);
            Assert.IsNull(ex.InnerException);
        }
예제 #3
0
 public void ConstructorTest2()
 {
     string message = "message";
       Exception inner = new Exception("Inner exception");
       var exception = new PhysicsException(message, inner);
       Assert.AreEqual("message", exception.Message);
       Assert.AreEqual(inner, exception.InnerException);
 }
        public void ConstructorTest2()
        {
            string    message   = "message";
            Exception inner     = new Exception("Inner exception");
            var       exception = new PhysicsException(message, inner);

            Assert.AreEqual("message", exception.Message);
            Assert.AreEqual(inner, exception.InnerException);
        }
예제 #5
0
        public void Test_PhysicsException_B()
        {
            string message = "abc";

            PhysicsException ex = new PhysicsException(message);

            Assert.AreEqual(message, ex.Message);
            Assert.IsNull(ex.InnerException);
        }
예제 #6
0
        public void Test_PhysicsException_C()
        {
            string            message = "abc";
            ArgumentException argEx   = new ArgumentException("klm");

            PhysicsException ex = new PhysicsException(message, argEx);

            Assert.AreEqual(message, ex.Message);
            Assert.AreEqual(argEx, ex.InnerException);
        }
예제 #7
0
 public void ConstructorTest1()
 {
     string message = "message";
       var exception = new PhysicsException(message);
       Assert.AreEqual("message", exception.Message);
 }