Exemplo n.º 1
0
 public void should_take_vakue_return_list(int value, int[] expected)
 {
     //arrange
     var factors = new SimplePrimeFactorsProvider();
     //act
     var result = factors.Generate(value);
     //assert
     result.Should().BeEquivalentTo(expected.ToList());
 }
Exemplo n.º 2
0
 public void should_take_1_return_empty()
 {
     //arrange
     var factors = new SimplePrimeFactorsProvider();
     //act
     var result = factors.Generate(2);
     //assert
     result.Should().BeEquivalentTo(new List<int> { 2 });
 }
Exemplo n.º 3
0
        public void should_take_vakue_return_list(int value, int[] expected)
        {
            //arrange
            var factors = new SimplePrimeFactorsProvider();
            //act
            var result = factors.Generate(value);

            //assert
            result.Should().BeEquivalentTo(expected.ToList());
        }
Exemplo n.º 4
0
        public void should_take_1_return_empty()
        {
            //arrange
            var factors = new SimplePrimeFactorsProvider();
            //act
            var result = factors.Generate(2);

            //assert
            result.Should().BeEquivalentTo(new List <int> {
                2
            });
        }