Exemple #1
0
        public void ConstructorAssignsSearchPath()
        {
            var target = new InvalidNestingException(typeof(FirstParam), typeof(SecondParam), new List <string> {
                "first", "second"
            });

            Assert.IsNotEmpty(target.SearchPath);
        }
Exemple #2
0
        public void ConstructorAssignsNestedType()
        {
            var target = new InvalidNestingException(typeof(FirstParam), typeof(SecondParam), new List <string> {
                "first", "second"
            });

            Assert.IsTrue(target.NestedType == typeof(FirstParam));
        }
Exemple #3
0
        public void ConstructorAssignsExpectedContainerName()
        {
            var target = new InvalidNestingException(typeof(FirstParam), typeof(SecondParam), new List <string> {
                "first", "second"
            });

            Assert.IsTrue(target.ExpectedContainerName == "SecondParam");
        }
Exemple #4
0
        public void ConstructorSetsMessage()
        {
            var target = new InvalidNestingException(typeof(FirstParam), typeof(SecondParam), new List <string> {
                "first", "second"
            });

            Assert.IsFalse(string.IsNullOrEmpty(target.Message));
        }