Browse Source

Added in fun edge case where one of the multiple is '1'

master
matt 2 months ago
parent
commit
da61269344
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      Tests.cs

+ 9
- 0
Tests.cs View File

@@ -103,5 +103,14 @@ namespace JobNimbus_application
Console.WriteLine($"Getting sum of multiples of {string.Join(',', multiples)} from 0-{range}. Should be 233168");
Assert.Equal(233168, SumService.sumMultiples(multiples, range));
}
[Fact]
public void Test13()
{
int[] multiples = {1,3,5};
int range = 10;
Console.WriteLine($"Getting sum of multiples of {string.Join(',', multiples)} from 0-{range}. Should be 45");
Assert.Equal(45, SumService.sumMultiples(multiples, range));
}
}
}

Loading…
Cancel
Save