Esempio n. 1
0
 public void Decode_WithLabel_BadPattern()
 {
     Assert.Throws <FormatException>(() => {
         ShortGuidString.Decode("Cheesecake " + EncodedShort + "a");
     });
     Assert.Throws <FormatException>(() => {
         ShortGuidString.Decode("Cheesecake *asdf");
     });
 }
Esempio n. 2
0
 public void Decode_WithoutLabel_Legacy()
 {
     Assert.Equal(Raw, ShortGuidString.Decode(EncodedLegacy));
 }
Esempio n. 3
0
 public void Decode_WithLabel_Legacy()
 {
     Assert.Equal(Raw, ShortGuidString.Decode("Cheesecake " + EncodedLegacy));
 }
Esempio n. 4
0
 public void Decode_WithoutLabel_Short()
 {
     Assert.Equal(Raw, ShortGuidString.Decode(EncodedShort));
 }