public void ConvertToStoreId_ProperGuid_DFormat() { // Arrange var guid = Guid.NewGuid().ToString("D"); // Act var actualGuid = File.ConvertToStoreId(guid); Assert.IsTrue(actualGuid != Guid.Empty); }
public void ConvertToStoreId_ImproperGuid_FormatException() { // Arrange try { // Act File.ConvertToStoreId("333333333!@#@!@!@!33333333333333333333333"); } catch (FormatException) { // assert return; } Assert.Fail("No exception was thrown."); }