Beispiel #1
0
        public void PolymerReactor_AdjecentUnitsOfSameTypeHaveSamePolarity_NothingHappens()
        {
            var polymer = Unit.ConvertPolymer("aabAAB");
            var reactor = new PolymerReactor();

            var result = reactor.ReactPolymerUnits(polymer);

            Assert.Equal(polymer, result);
        }
Beispiel #2
0
        public void PolymerReactor_AfterFirstReactionTwoOtherUnitsCanReact_BothReactionsHappen()
        {
            var polymer = Unit.ConvertPolymer("abBA");
            var reactor = new PolymerReactor();

            var result = reactor.ReactPolymerUnits(polymer);

            Assert.Empty(result);
        }
Beispiel #3
0
        public void PolymerReactor_SameTypeDifferentPolarity_Reacts()
        {
            var polymer = Unit.ConvertPolymer("aA");
            var reactor = new PolymerReactor();

            var result = reactor.ReactPolymerUnits(polymer);

            Assert.Empty(result);
        }