[TestMethod] public void GenerateDeclarationWithoutName() { // Arrange var fields = fields_; var key = new PrimaryKey(fields); var mockBuilder = new Mock <IKeyDeclBuilder>(); // Act key.GenerateSqlDeclaration(mockBuilder.Object); // Assert mockBuilder.Verify(builder => builder.SetFields(Arg.IsSameSequence <IEnumerable <IField> >(fields))); mockBuilder.Verify(builder => builder.SetAsPrimaryKey()); mockBuilder.Verify(builder => builder.Build()); mockBuilder.VerifyNoOtherCalls(); }