public void Get_IsCaseInsensitive_Test() { string path; using (WriteText(out path, "RS001")) { var favourites = new TextFavouriteManager(path); Assert.True(favourites.Get("RS001")); Assert.True(favourites.Get("rs001")); } }
public void Ctor_CorrectlyInitializesFavouritesFromFile_Test() { string path; using (WriteText(out path, "RS001", "RS002", "RS003")) { var favourites = new TextFavouriteManager(path); Assert.True(favourites.Get("RS001")); Assert.True(favourites.Get("RS002")); Assert.True(favourites.Get("RS003")); } }
public void Get_ReturnsFalseWhenIdGet_Test() { string path; using (WriteText(out path)) { var favourites = new TextFavouriteManager(path); Assert.False(favourites.Get("RS001")); } }