Example #1
0
        public void TestFlyweight()
        {
            var gb1 = Gb2260Factory.Create(Revision.V201010);
            var gb2 = Gb2260Factory.Create(Revision.V201010);

            Assert.NotNull(gb1);
            Assert.Same(gb1, gb2);
            var gb3 = Gb2260Factory.Create(Revision.V200212);

            Assert.NotSame(gb1, gb3);
        }
Example #2
0
 public Gb2260Test()
 {
     Gb = Gb2260Factory.Create();
 }