public void GetShortNotation_InvalidSignature_NullShortNotation() { var walletPart = new WalletPart() { Signature = new WalletSignature() { Version = 1, PartsThreshold = 22, PartsTotal = 4 }, Data = "5edb71e0-ac40-40a3-a22d-70220058eba5" }; Assert.IsNull(walletPart.GetShortNotation()); }
public void GetShortNotation_InvalidData_NullShortNotation() { var walletPart = new WalletPart() { Signature = new WalletSignature() { Version = 1, PartsThreshold = 2, PartsTotal = 4 }, Data = null }; Assert.IsNull(walletPart.GetShortNotation()); }
public void GetShortNotation_ValidWalletPart_ValidShortNotation() { var walletPart = new WalletPart() { Signature = new WalletSignature() { Version = 1, PartsThreshold = 2, PartsTotal = 4 }, Data = "5edb71e0-ac40-40a3-a22d-70220058eba5" }; var expectedShortNotation = "1|2|4|5edb71e0-ac40-40a3-a22d-70220058eba5"; Assert.That(walletPart.GetShortNotation(), Is.EqualTo(expectedShortNotation)); }