Example #1
0
            public void SetActive_Should_Throw_Exception_When_Result_Is_Null()
            {
                FeatureListItemVm feature = new FeatureListItemVm();
                Feature           result  = null;

                FeatureListItemVm actual = FeatureModelHelper.SetActive(feature, result);
            }
Example #2
0
            public void SetActive_Should_Set_Inactive_When_Feature_Is_Inactive()
            {
                FeatureListItemVm feature = new FeatureListItemVm();
                Feature           result  = this.GetFeature(false);

                FeatureListItemVm actual = FeatureModelHelper.SetActive(feature, result);

                Assert.AreEqual("Inactive", actual.Active);
                Assert.AreEqual("danger", actual.ActiveClass);
            }