コード例 #1
0
            public void IsSatisfied_Calculated()
            {
                Screen screen = Screen.CurvedScreen;
                ScreenSpecification actual = new ScreenSpecification(screen);

                ComputerMonitor data = new ComputerMonitor
                {
                    Name   = "A1",
                    Screen = Screen.CurvedScreen,
                    Type   = MonitorType.LCD
                };

                Assert.True(actual.IsSatisfied(data));
            }
コード例 #2
0
            public void IsSatisfied_Calculated()
            {
                MonitorType type = MonitorType.LED;
                MonitorTypeSpecification actual = new MonitorTypeSpecification(type);

                ComputerMonitor data = new ComputerMonitor
                {
                    Name   = "B1",
                    Screen = Screen.WideScreen,
                    Type   = MonitorType.LCD
                };

                Assert.True(actual.IsSatisfied(data));
            }