public void DoesntModifySearchTextIfSearchTextIsntEmpty() { //arrange var vm = new HostViewModel { SearchText = "Some String" }; //act vm.SearchLostFocus(null); //assert Assert.Equal("Some String", vm.SearchText); }
public void SetsSearchTextToSearchWhenSearchTextIsEmpty() { //arrange var vm = new HostViewModel { SearchText = string.Empty }; //act vm.SearchLostFocus(null); //assert Assert.Equal("Search", vm.SearchText); }