示例#1
0
        public void Rebuild_ShouldBuildNewResult()
        {
            var imageBuilder =
                new CloudImageBuilder(_cloudBuilder.Object, _wordReader.Object, _wordWeighter.Object, _wordDrawer.Object, _defaultSize);
            var result1 = imageBuilder.BuildImage();

            imageBuilder.RebuildCloudImage(_cloudBuilder.Object, _wordReader.Object, _defaultSize);
            var result2 = imageBuilder.BuildImage();

            result1.Should().NotBe(result2);
        }
示例#2
0
        public void Result_ShouldHaveSameSize()
        {
            var imageBuilder =
                new CloudImageBuilder(_cloudBuilder.Object, _wordReader.Object, _wordWeighter.Object, _wordDrawer.Object, _defaultSize);
            var result = imageBuilder.BuildImage();

            result.Size.Should().Be(_defaultSize);
        }