Exemplo n.º 1
0
        public void Get_FeatureName_ReturnsFeature()
        {
            // arrange
            FeatureManager featureManager = new FeatureManager();

            featureManager.Add(new Feature <int>("F1"));

            // act
            FeatureBase feature = featureManager.Get("F1");
            Type        type    = feature.GetFeatureType();

            // assert
            Assert.IsNotNull(feature);
            Assert.AreEqual(feature.Name, "F1");
            Assert.AreEqual(typeof(int), type);
        }