public void ConstructorTest1() { string message = "message"; var exception = new PhysicsException(message); Assert.AreEqual("message", exception.Message); }
public void Test_PhysicsException_A() { PhysicsException ex = new PhysicsException(); StringAssert.Contains("Exception of type", ex.Message); Assert.IsNull(ex.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); }
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 Test_PhysicsException_B() { string message = "abc"; PhysicsException ex = new PhysicsException(message); Assert.AreEqual(message, ex.Message); Assert.IsNull(ex.InnerException); }
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); }
public void ConstructorTest1() { string message = "message"; var exception = new PhysicsException(message); Assert.AreEqual("message", exception.Message); }