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)); }
public void Qubinator_Should_Generate_Correct_2D_Full_Board() { var result = Quber.To2DFull("BATATINHA"); var expected = @"BATATINHA A H T N A I T T I A N T H A AHNITATAB "; Assert.Equal(expected, result); }