Skip to content

Commit b6d6894

Browse files
committed
Add test to sanity check information units
1 parent a6c2d82 commit b6d6894

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Tests/CustomCode/InformationTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// THE SOFTWARE.
2121

2222

23-
using System;
23+
using NUnit.Framework;
2424

2525
namespace UnitsNet.Tests.CustomCode
2626
{
@@ -65,5 +65,11 @@ protected override double TerabytesInOneBit
6565
{
6666
get { return 0.125*1e-12; }
6767
}
68+
69+
[Test]
70+
public void OneKBHas1000Bytes()
71+
{
72+
Assert.AreEqual(1000, Information.FromKilobytes(1).Bytes);
73+
}
6874
}
69-
}
75+
}

0 commit comments

Comments
 (0)