Skip to content

Commit

Permalink
Added summaries to MoneyTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoekstraa committed Sep 12, 2018
1 parent aca5514 commit 8575789
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions money/MoneyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace NUnit.Samples.Money
using System;
using NUnit.Framework;
/// <summary>
///
/// Tests Money
/// </summary>
///
[TestFixture]
Expand All @@ -18,7 +18,7 @@ public class MoneyTest
private MoneyBag fMB2;

/// <summary>
///
/// Initializes Money test objects
/// </summary>
///
[SetUp]
Expand All @@ -34,7 +34,7 @@ protected void SetUp()
}

/// <summary>
///
/// Assert that Moneybags multiply correctly
/// </summary>
///
[Test]
Expand All @@ -49,7 +49,7 @@ public void BagMultiply()
}

/// <summary>
///
/// Assert that Moneybags negate(positive to negative values) correctly
/// </summary>
///
[Test]
Expand All @@ -62,7 +62,7 @@ public void BagNegate()
}

/// <summary>
///
/// Assert that adding currency to Moneybags happens correctly
/// </summary>
///
[Test]
Expand All @@ -75,7 +75,7 @@ public void BagSimpleAdd()
}

/// <summary>
///
/// Assert that subtracting currency to Moneybags happens correctly
/// </summary>
///
[Test]
Expand All @@ -88,7 +88,7 @@ public void BagSubtract()
}

/// <summary>
///
/// Assert that adding multiple currencies to Moneybags in one statement happens correctly
/// </summary>
///
[Test]
Expand All @@ -101,7 +101,7 @@ public void BagSumAdd()
}

/// <summary>
///
/// Assert that Moneybags hold zero value after adding zero value
/// </summary>
///
[Test]
Expand All @@ -114,7 +114,7 @@ public void IsZero()
}

/// <summary>
///
/// Assert that a new bag is the same as adding value to an existing bag
/// </summary>
///
[Test]
Expand All @@ -127,7 +127,7 @@ public void MixedSimpleAdd()
}

/// <summary>
///
/// Assert that MoneyBag.Equals() works correctly
/// </summary>
///
[Test]
Expand All @@ -147,7 +147,8 @@ public void MoneyBagEquals()
}

/// <summary>
///
/// Assert that the hash of a new bag is the same as
/// the hash of an existing bag with added value
/// </summary>
///
[Test]
Expand All @@ -158,7 +159,7 @@ public void MoneyBagHash()
}

/// <summary>
///
/// Assert that Money.Equals() works correctly
/// </summary>
///
[Test]
Expand All @@ -175,7 +176,8 @@ public void MoneyEquals()
}

/// <summary>
///
/// Assert that the hash of new Money is the same as
/// the hash of initialized Money
/// </summary>
///
[Test]
Expand All @@ -187,7 +189,7 @@ public void MoneyHash()
}

/// <summary>
///
/// Assert that adding multiple small values is the same as adding one big value
/// </summary>
///
[Test]
Expand All @@ -202,7 +204,7 @@ public void Normalize()
}

/// <summary>
///
/// Assert that removing a value is the same as not having such a value
/// </summary>
///
[Test]
Expand All @@ -214,7 +216,7 @@ public void Normalize2()
}

/// <summary>
///
/// Assert that removing multiple values works correctly
/// </summary>
///
[Test]
Expand All @@ -228,7 +230,7 @@ public void Normalize3()
}

/// <summary>
///
/// Assert that if value is subtracted from 0, the result will be negative.
/// </summary>
///
[Test]
Expand All @@ -242,7 +244,7 @@ public void Normalize4()
}

/// <summary>
///
/// Assert that Money.ToString() function works correctly
/// </summary>
///
[Test]
Expand All @@ -252,7 +254,7 @@ public void Print()
}

/// <summary>
///
/// Assert that adding more value to Money happens correctly
/// </summary>
///
[Test]
Expand All @@ -264,7 +266,7 @@ public void SimpleAdd()
}

/// <summary>
///
/// Assert that adding multiple currencies to Moneybags happens correctly
/// </summary>
///
[Test]
Expand All @@ -277,7 +279,7 @@ public void SimpleBagAdd()
}

/// <summary>
///
/// Assert that multiplying currency in Money happens correctly
/// </summary>
///
[Test]
Expand All @@ -289,7 +291,7 @@ public void SimpleMultiply()
}

/// <summary>
///
/// Assert that negating(positive to negative values) currency in Money happens correctly
/// </summary>
///
[Test]
Expand All @@ -301,7 +303,7 @@ public void SimpleNegate()
}

/// <summary>
///
/// Assert that removing currency from Money happens correctly
/// </summary>
///
[Test]
Expand All @@ -312,4 +314,4 @@ public void SimpleSubtract()
Assert.AreEqual(expected, f14CHF.Subtract(f12CHF));
}
}
}
}

0 comments on commit 8575789

Please sign in to comment.