コード例 #1
0
        public void testGetFlag() {
            FlagFactory factory = new FlagFactory();

            IList<Color> colors = factory.GetFlagColors(Nationality.DUTCH);

            Assert.AreEqual(Color.Red, colors[0]);
            Assert.AreEqual(Color.White, colors[1]);
            Assert.AreEqual(Color.Blue, colors[2]);
        }
コード例 #2
0
        public void testGetFlag()
        {
            FlagFactory factory = new FlagFactory();

            IList <Color> colors = factory.GetFlagColors(Nationality.DUTCH);

            Assert.AreEqual(Color.Red, colors[0]);
            Assert.AreEqual(Color.White, colors[1]);
            Assert.AreEqual(Color.Blue, colors[2]);
        }