Example #1
0
        public void CreateBuilder_Should_Return_DemonSlayerBuilder()
        {
            //Arrange & Act
            var target = DemonSlayerBuilder.CreateBuilder();

            //Assert
            Assert.NotNull(target);
            Assert.True(target.GetType() == typeof(DemonSlayerBuilder));
        }
Example #2
0
        public void DemonSlayer_Should_Have_A_Defined_Entries()
        {
            //Arrange
            var builder = DemonSlayerBuilder.CreateBuilder()
                          .WithEntries(10, "Riu");

            //Act
            var target = builder.Build();

            //Assert
            Assert.NotNull(target);
            Assert.Equal("Riu", target.Entries[10]);
        }
Example #3
0
        public void DemonSlayer_Should_Have_A_Defined_Rank()
        {
            //Arrange
            var builder = DemonSlayerBuilder.CreateBuilder()
                          .WithRank(Ranks.Hashira);

            //Act
            var target = builder.Build();

            //Assert
            Assert.NotNull(target);
            Assert.Equal(Ranks.Hashira, target.Rank);
        }
Example #4
0
        public void DemonSlayer_Should_Have_A_Defined_Name()
        {
            //Arrange
            var builder = DemonSlayerBuilder.CreateBuilder()
                          .WithName("SparcoSlayer");

            //Act
            var target = builder.Build();

            //Assert
            Assert.NotNull(target);
            Assert.Equal("SparcoSlayer", target.Name);
        }
Example #5
0
        public void DemonSlayer_Should_Have_A_Defined_Number_Of_Katanas()
        {
            //Arrange
            var builder = DemonSlayerBuilder.CreateBuilder()
                          .WithKatanas(2);

            //Act
            var target = builder.Build();

            //Assert
            Assert.NotNull(target);
            Assert.Equal(2, target.Katanas);
        }
Example #6
0
        public void DemonSlayer_Should_Have_A_Defined_Level()
        {
            //Arrange
            var builder = DemonSlayerBuilder.CreateBuilder()
                          .WithLevel(10);

            //Act
            var target = builder.Build();

            //Assert
            Assert.NotNull(target);
            Assert.Equal(10, target.Level);
        }