public static void GetProductsOfAllIntsExceptAtIndex_HandlesZerosCorrectly()
 {
     Assert.That(ProductOfOtherNumbers.GetProductsOfAllIntsExceptAtIndex(new int[] { 1, 3, 0 }), Is.EqualTo(new int[] { 0, 0, 3 }));
 }
 public static void GetProductsOfAllIntsExceptAtIndex_HandlesNullCorrectly()
 {
     Assert.Throws <ArgumentNullException>(() => ProductOfOtherNumbers.GetProductsOfAllIntsExceptAtIndex(null));
 }
 public static void GetProductsOfAllIntsExceptAtIndex_HandlesNegativesCorrectly()
 {
     Assert.That(ProductOfOtherNumbers.GetProductsOfAllIntsExceptAtIndex(new int[] { -1, -1, -1 }), Is.EqualTo(new int[] { 1, 1, 1 }));
 }
 public static void GetProductsOfAllIntsExceptAtIndex_BasicExample_ReturnsExpected()
 {
     Assert.That(ProductOfOtherNumbers.GetProductsOfAllIntsExceptAtIndex(new int[] { 1, 7, 3, 4 }), Is.EqualTo(new int[] { 84, 12, 28, 21 }));
 }