public void Test_Plaintext_Ballot_Selection_Is_InValid_With_Different_objectIds() { var objectId = "some-object-id"; var subject = new PlaintextBallotSelection(objectId, 1); Assert.That(subject.IsValid("some-other-object-id") == false); }
public void Test_Plaintext_Ballot_Selection_Is_InValid_With_overvote() { var objectId = "some-object-id"; var subject = new PlaintextBallotSelection(objectId, 2); Assert.That(subject.IsValid(objectId) == false); }
public void Test_Plaintext_Ballot_Selection_Is_Valid() { var objectId = "some-object-id"; var subject = new PlaintextBallotSelection(objectId, 1); Assert.That(subject.IsValid(objectId) == true); }