public void FileDialogCustomPlacesCollection_Add_Guid_Success(Guid knownFolderGuid) { var collection = new FileDialogCustomPlacesCollection(); collection.Add(knownFolderGuid); FileDialogCustomPlace place = Assert.Single(collection); Assert.Equal(knownFolderGuid, place.KnownFolderGuid); Assert.Empty(place.Path); }
public void FileDialogCustomPlacesCollection_Add_String_Success(string path) { var collection = new FileDialogCustomPlacesCollection(); collection.Add(path); FileDialogCustomPlace place = Assert.Single(collection); Assert.Equal(Guid.Empty, place.KnownFolderGuid); Assert.Same(path ?? string.Empty, place.Path); }