OSDN Git Service

コレクションのサイズに対するアサーションをAssert.Empty/Singleで行う (xUnit2013)
[opentween/open-tween.git] / OpenTween.Tests / IndexedSortedSetTest.cs
index b15a8c2..68f048c 100644 (file)
@@ -102,10 +102,10 @@ namespace OpenTween
         {
             var set = new IndexedSortedSet<int>();
 
-            Assert.Equal(0, set.Count);
+            Assert.Empty(set);
 
             set.Add(1);
-            Assert.Equal(1, set.Count);
+            Assert.Single(set);
         }
 
         [Fact]