Ad
  • Default User Avatar

    This isn't event written to compile in C#

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Dude, if you are going to assert for a conditional, use Assert.True or Assert.False, not Assert.AreEqual, it makes you look like you don't know what you're doing, and it gives bad debug messages. This is almost as bad as someone in javascript doing "value === value2 should be true" instead of "value should be equal to value2"

  • Default User Avatar

    Stop using Expect when you also use === it makes you look stupid, use assertEquals, it gives better messages
    so instead of doing this:
    Test.expect(whatever() === 10);

    do this

    Test.assertEquals(whatever(), 10);

  • Default User Avatar

    Use assertEquals instead of expect, it gives WAY better debug messages, expect gives "the value was not correct" whereas assertEquals gives "undefined was not equal to John Doe"