public void GetCssClassesForFeatures_GivenNoLanguage_ReturnsCorrectString() { var featuresForClass = FeatureToggles.GetCssClassesForFeatures(); Assert.IsTrue(featuresForClass.Contains(" feat-enabledbutwronglanguage")); Assert.IsTrue(featuresForClass.Contains(" feat-enabledforcurrentlanguage")); Assert.IsTrue(featuresForClass.Contains(" no-feat-featuredisabled")); Assert.IsTrue(featuresForClass.Contains("feat-featureenabled")); }
public void GetsCssClassStringCorrectly() { Assert.AreEqual("feat-featureenabled feat-featuredisabledbutoverridden feat-featurewithsublayouts feat-enabledforcurrentlanguage feat-featurewithlayoutbytemplateid feat-featurewithlayoutbyitemid feat-featurewithlayoutdefault feat-featurewithmultiplelayouts", FeatureToggles.GetCssClassesForFeatures("current")); }