コード例 #1
0
        public void GetParameterReturnsEmptyIfSelectedFalse(NameOnlyParameterViewModel sut)
        {
            sut.IsSelected = false;
            var parameter = sut.GetParameter();

            Assert.Equal(Maybe.Empty <IParameter>(), parameter);
        }
コード例 #2
0
        public void GetParameterReturnsParameterIfSelected(NameOnlyParameterViewModel sut)
        {
            var expected = Maybe.ToMaybe(new NameOnlyParameter(sut.Name));

            sut.IsSelected = true;
            var actual = sut.GetParameter();

            Assert.Equal(expected, actual);
        }