public void FindObjectByPath_ShouldntFindPathToObjectWhenObjectIsParentWithValidWrongPath(IStructure obj, string path) { //Arrange //Act IStructure result = obj.FindObjectByPath(path); //Assert Assert.Null(result); }
public void FindObjectByPath_ShouldFindPathToObjectWhenItIsParent(IStructure obj, string path) { //Arrange //Act IStructure result = obj.FindObjectByPath(path); //Assert Assert.Equal <IStructure>(obj, result); }