public void GetParameterReturnsEmptyIfSelectedFalse(NameOnlyParameterViewModel sut) { sut.IsSelected = false; var parameter = sut.GetParameter(); Assert.Equal(Maybe.Empty <IParameter>(), parameter); }
public void GetParameterReturnsParameterIfSelected(NameOnlyParameterViewModel sut) { var expected = Maybe.ToMaybe(new NameOnlyParameter(sut.Name)); sut.IsSelected = true; var actual = sut.GetParameter(); Assert.Equal(expected, actual); }