Ejemplo n.º 1
0
        public static async Task GetSequenceComments_GivenValidName_ReturnsNone()
        {
            var provider = new EmptyDatabaseSequenceCommentProvider();
            var comment  = provider.GetSequenceComments("test_sequence");
            var isNone   = await comment.IsNone.ConfigureAwait(false);

            Assert.That(isNone, Is.True);
        }
Ejemplo n.º 2
0
        public static async Task GetAllSequenceComments_WhenInvoked_DoesNotEnumerateAnyValues()
        {
            var provider    = new EmptyDatabaseSequenceCommentProvider();
            var hasComments = await provider.GetAllSequenceComments()
                              .AnyAsync()
                              .ConfigureAwait(false);

            Assert.That(hasComments, Is.False);
        }
Ejemplo n.º 3
0
        public static void GetSequenceComments_GivenNullName_ThrowsArgumentNullException()
        {
            var provider = new EmptyDatabaseSequenceCommentProvider();

            Assert.That(() => provider.GetSequenceComments(null), Throws.ArgumentNullException);
        }