예제 #1
0
        static void Main(string[] args)
        {
            TestManager tm = new TestManager();

            Console.WriteLine(tm.GetTestState());

            tm.Percentage = 51;
            Console.WriteLine(tm.GetTestState());
            tm.Percentage = 90;
            Console.WriteLine(tm.GetTestState());
            tm.Percentage = 49;
            Console.WriteLine(tm.GetTestState());

            Console.ReadLine();
        }
예제 #2
0
 public YellowState(TestManager manager, int percentage)
     : base(manager, percentage)
 {
 }
예제 #3
0
 public GreenState(TestManager manager, int percentage)
     : base(manager, percentage)
 {
 }