예제 #1
0
 public void ToBytes_WordTest_BytesLength9()
 {
     var word = new DiceWord("Test");
     var bytes = word.ToBytes();
     Assert.Equal(9, bytes.Count());
 }
예제 #2
0
 public void ToBytes_WordTest_BytesEquals()
 {
     var word = new DiceWord("Test");
     var bytes = word.ToBytes();
     byte[] expectedBytes = Convert.FromBase64String("BAAAAFRlc3QA");
     Assert.Equal(expectedBytes, bytes);
 }