public void CreatePartitionKeyTest() { string expected = "myApplication_201503"; string actual = ApplicationLogEntityManager.CreatePartitionKey("myApplication", new DateTimeOffset(2015, 3, 2, 0, 0, 0, new TimeSpan())); Assert.AreEqual(expected, actual); }
public void CreatePartitionKeyGuardTest_NullArgument() { Assert.Throws <ArgumentNullException>(() => ApplicationLogEntityManager.CreatePartitionKey(null, DateTimeOffset.MinValue)); }