public void prop_Info_get() { using (var temp = new TempDirectory()) { var expected = temp.Info.FullName; var obj = new DirectoryItem { Value = expected }; var actual = obj.Info.FullName; Assert.Equal(expected, actual); } }
public void op_Equals_DirectoryItem_whenFalse() { using (var temp = new TempDirectory()) { var obj = new DirectoryItem { Name = temp.Info.Name, Value = temp.Info.FullName }; var other = new DirectoryItem(); Assert.False(obj.Equals(other)); } }