public void TestThatGetFrameInFrameBIlderCorectFrameWithColumnsPatternFrameBuilder()
 {
     TileFactory tileFactory = new LetterTileFactory();
     FrameBuilder frameBuilder = new ColumnsPatternFrameBuilder(tileFactory);
     var frameDirector = new FrameDirector(frameBuilder);
     var actualBuilder = frameDirector.ConstructFrame(2, 2);
     Assert.IsInstanceOfType(actualBuilder, typeof(IFrame));
 }
 public void ExpectFalseEqualsMethodWhithDiferentIframeWithDiferentSizeOfColumnsTest()
 {
     TileFactory tileFactoryFirst = new NumberTileFactory();
     TileFactory tileFactorySecond = new NumberTileFactory();
     FrameBuilder frameBuilderFirst = new ClassicPatternFrameBuilder(tileFactoryFirst);
     FrameBuilder frameBuilderSecond = new ColumnsPatternFrameBuilder(tileFactorySecond);
     var frameDirectorFirst = new FrameDirector(frameBuilderFirst);
     var frameDirectorSecond = new FrameDirector(frameBuilderSecond);
     var expectetFrameFirst = frameDirectorFirst.ConstructFrame(5, 5);
     var expectetFrameSecond = frameDirectorSecond.ConstructFrame(6, 6);
     bool result = expectetFrameFirst.Equals(expectetFrameSecond);
     Assert.IsFalse(result);
 }
 public void TestThatGetFrameInFrameBIlderReturnedValueWithColumnsPatternFrameBuilderr()
 {
     TileFactory tileFactory = new LetterTileFactory();
     FrameBuilder frameBuilder = new ColumnsPatternFrameBuilder(tileFactory);
     var frameDirector = new FrameDirector(frameBuilder);
     var actualFrame = frameDirector.ConstructFrame(2, 2);
     Assert.IsNotNull(actualFrame);
 }