Exemple #1
0
        public void TestNormalize()
        {
            var keep = new ImplementationPreferences {ID = "id1", UserStability = Stability.Testing};
            var superflous = new ImplementationPreferences {ID = "id2"};
            var preferences = new FeedPreferences {Implementations = {keep, superflous}};

            preferences.Normalize();
            preferences.Implementations.Should().BeEquivalentTo(keep);
        }
        public void TestNormalize()
        {
            var keep = new ImplementationPreferences {
                ID = "id1", UserStability = Stability.Testing
            };
            var superflous = new ImplementationPreferences {
                ID = "id2"
            };
            var preferences = new FeedPreferences {
                Implementations = { keep, superflous }
            };

            preferences.Normalize();
            CollectionAssert.AreEquivalent(new[] { keep }, preferences.Implementations);
        }