public void RootOfThePathCanBeCreatedWithName() { var path = TypeRequestPath.Root(TestPathName); Assert.AreEqual(TestPathName, path.Name); }
public void RootOfThePathCanBeCreatedWithoutTheName() { Assert.DoesNotThrow(() => TypeRequestPath.Root()); }
public void ThrowsArgumentNullExceptionForNullTypeRequestInfo() { var parent = TypeRequestPath.Root(); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(parent, null)); }
public void ReturnsNullForEmpty() { var path = TypeRequestPath.Root(); Assert.IsNull(path.LastType); }
public void ThrowsArgumentNullExceptionForNullParent() { var item = new TypeRequestInfo(typeof(X)); ExceptionTester.CallMethodAndExpectException <ArgumentException>(() => TypeRequestPath.Branch(null, item)); }