public void ConstructorAssignsSearchPath() { var target = new InvalidNestingException (typeof(FirstParam),typeof(SecondParam),new List<string>{"first","second"}); Assert.IsNotEmpty(target.SearchPath); }
public void ConstructorAssignsNestedType() { var target = new InvalidNestingException (typeof(FirstParam),typeof(SecondParam),new List<string>{"first","second"}); Assert.IsTrue(target.NestedType==typeof(FirstParam)); }
public void ConstructorAssignsExpectedContainerName() { var target = new InvalidNestingException (typeof(FirstParam),typeof(SecondParam),new List<string>{"first","second"}); Assert.IsTrue(target.ExpectedContainerName=="SecondParam"); }
public void ConstructorSetsMessage() { var target = new InvalidNestingException (typeof(FirstParam),typeof(SecondParam),new List<string>{"first","second"}); Assert.IsNotNullOrEmpty( target.Message); }