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

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

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

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

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