示例#1
0
            public void RootOfThePathCanBeCreatedWithName()
            {
                var path = TypeRequestPath.Root(TestPathName);

                Assert.AreEqual(TestPathName, path.Name);
            }
示例#2
0
 public void RootOfThePathCanBeCreatedWithoutTheName()
 {
     Assert.DoesNotThrow(() => TypeRequestPath.Root());
 }
示例#3
0
            public void ThrowsArgumentNullExceptionForNullTypeRequestInfo()
            {
                var parent = TypeRequestPath.Root();

                ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(parent, null));
            }
示例#4
0
            public void ReturnsNullForEmpty()
            {
                var path = TypeRequestPath.Root();

                Assert.IsNull(path.LastType);
            }
示例#5
0
            public void ThrowsArgumentNullExceptionForNullParent()
            {
                var item = new TypeRequestInfo(typeof(X));

                ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(null, item));
            }