public void When_CreatedFromArray_ShouldEqualTheArray() { var signature = Convert.FromBase64String("rmF9pqV8S7suAoZWja4dJRkFsKQ="); var attribute = new ServerSignatureAttribute(signature); Assert.True(attribute.Equals(signature)); }
public void When_CreatingTwoAttributes_TheHashCodesShouldBeEqual() { var first = ScramAttribute.Parse("v=rmF9pqV8S7suAoZWja4dJRkFsKQ="); var second = new ServerSignatureAttribute("rmF9pqV8S7suAoZWja4dJRkFsKQ="); first.GetHashCode().ShouldBe(second.GetHashCode()); }
public void When_CreatedByParsing_ValueShouldBeValid() { var attribute = ScramAttribute.Parse("v=rmF9pqV8S7suAoZWja4dJRkFsKQ="); var result = new ServerSignatureAttribute("rmF9pqV8S7suAoZWja4dJRkFsKQ="); attribute.ShouldBe(result); }
/// <summary> /// Initializes a new instance of the <see cref="ServerFinalMessage"/> class. /// </summary> /// <param name="serverSignature">Server signature.</param> public ServerFinalMessage(ServerSignatureAttribute serverSignature) { ServerSignature = serverSignature; }