Esempio n. 1
0
        public void SetInitialSize_ShouldNotThrowException_WhenSetPlateuSize()
        {
            var plateu = new Plateu();

            var expectNull = Record.Exception(() => plateu.SetInitialSize("5 5"));

            Assert.Null(expectNull);
        }
Esempio n. 2
0
        public void SetInitialSize_ShouldFormatException_WhenPlateuIsEmpty()
        {
            var plateu = new Plateu();

            Assert.Throws <FormatException>(() => plateu.SetInitialSize(""));
        }
Esempio n. 3
0
        public void SetInitialSize_ShouldFormatException_WhenPlateuIsIncludeCharacter()
        {
            var plateu = new Plateu();

            Assert.Throws <FormatException>(() => plateu.SetInitialSize("5 a"));
        }