コード例 #1
0
ファイル: LogicTest.cs プロジェクト: csharpspecialist/GP
        public void CanHazTable(int yourStyle, int dateStyle, int expected)
        {
            LogicWarmup now    = new LogicWarmup();
            int         result = now.CanHazTable(yourStyle, dateStyle);

            Assert.AreEqual(expected, result);
        }
コード例 #2
0
ファイル: LogicTest.cs プロジェクト: csharpspecialist/GP
        public void PlayOutside(int temp, bool isSummer, bool expected)
        {
            LogicWarmup test   = new LogicWarmup();
            bool        result = test.PlayOutside(temp, isSummer);

            Assert.AreEqual(expected, result);
        }
コード例 #3
0
ファイル: LogicTest.cs プロジェクト: csharpspecialist/GP
        public void InRange(int n, bool outsideMode, bool expected)
        {
            LogicWarmup score  = new LogicWarmup();
            bool        result = score.InRange(n, outsideMode);

            Assert.AreEqual(expected, result);
        }
コード例 #4
0
ファイル: LogicTest.cs プロジェクト: csharpspecialist/GP
        public void CaughtSpeeding(int speed, bool isBirthday, int expected)
        {
            LogicWarmup test   = new LogicWarmup();
            int         result = test.CaughtSpeeding(speed, isBirthday);


            Assert.AreEqual(expected, result);
        }