public static void SequenceName_PropertyGet_EqualsCtorArg() { Identifier sequenceName = "test_sequence"; var comments = new DatabaseSequenceComments(sequenceName, Option <string> .None); Assert.That(comments.SequenceName, Is.EqualTo(sequenceName)); }
public static void Comment_PropertyGetWhenCtorGivenValidCommentValue_MatchesCommentValue() { const string commentText = "this is a test comment"; var commentArg = Option <string> .Some(commentText); var comments = new DatabaseSequenceComments("test_sequence", commentArg); Assert.That(comments.Comment.UnwrapSome(), Is.EqualTo(commentText)); }
public static void Comment_PropertyGetWhenCtorGivenNone_IsNone() { var comments = new DatabaseSequenceComments("test_sequence", Option <string> .None); Assert.That(comments.Comment, OptionIs.None); }