public void ConvertsBackReturnsNoFilteringProfileWhenCalledWithTrueAndTheIdIsNotMatching() { // Arrange var subject = new ProfileToBoolConverter(); // Act var actual = (FilteringProfile)subject.ConvertBack(true, null, "somethigElse", null); // Assert Assert.Equal(FilteringProfile.NoFiltering, actual); }
public void ConvertBackReturnsBindingDoNothingWhenCalledWithFalse() { // Arrange var subject = new ProfileToBoolConverter(); // Act var actual = subject.ConvertBack(false, null, "medium", null); // Assert Assert.Equal(Binding.DoNothing, actual); }
public void ConvertsBackReturnsTheProfileWhenCalledWithTrueAndIdIsMatching() { // Arrange var subject = new ProfileToBoolConverter(); // Act var actual = (FilteringProfile)subject.ConvertBack(true, null, "medium", null); // Assert Assert.Equal(FilteringProfile.MediumFiltering, actual); }