Beispiel #1
0
        void Qubinator_Should_Throw_Exception_If_Word_Has_Less_Than_3_Letters()
        {
            string wordNull = null;
            var    word     = "OI";

            Assert.Throws <ArgumentNullException>(() => Quber.To2DFull(wordNull));
            Assert.Throws <ArgumentException>(() => Quber.To2DFull(word));

            Assert.Throws <ArgumentNullException>(() => Quber.To2DSimple(wordNull));
            Assert.Throws <ArgumentException>(() => Quber.To2DSimple(word));

            Assert.Throws <ArgumentNullException>(() => Quber.To3D(wordNull));
            Assert.Throws <ArgumentException>(() => Quber.To3D(word));

            Assert.Throws <ArgumentNullException>(() => Quber.ToFullTextOffset(wordNull));
            Assert.Throws <ArgumentException>(() => Quber.ToFullTextOffset(word));
        }
Beispiel #2
0
        public void Qubinator_Should_Generate_Correct_2D_Simple_Board()
        {
            var result = Quber.To2DSimple("BATATINHA");

            var expected =
                @"BATATINHA
A        
T        
A        
T        
I        
N        
H        
A        
";

            Assert.Equal(expected, result);
        }