Ad
  • Custom User Avatar

    @HenningNT

    C# Completions 204

    The C# tests are ok. Your code is wrong. See the last test, the area of a cube (6 sides) of side length 10, is not 100, it's 600.

  • Custom User Avatar

    The sample tests are wrong in c#, and if those are used in the "real" tests then it is impossible to complete in c#.
    This test "worked for me":
    [Test]
    public void Test1()
    {
    Assert.AreEqual(new[] { 24, 48 }, Kata.Get_size(4, 2, 6));
    Assert.AreEqual(new[] { 1, 1 }, Kata.Get_size(1, 1, 1));
    Assert.AreEqual(new[] { 1, 2 }, Kata.Get_size(1, 2, 1));
    Assert.AreEqual(new[] { 2, 4 }, Kata.Get_size(1, 2, 2));
    Assert.AreEqual(new[] { 100, 1000 }, Kata.Get_size(10, 10, 10));
    }

  • Custom User Avatar
  • Default User Avatar

    Usually the kind of issue where a test case appears correct but isn't has to do with whitespace (spaces, tabs, newlines, etc).