Skip to content

测试用例合理性讨论 #16

Closed
Closed
@LambertW

Description

@LambertW

SqlServerInsertTest.cs

增加

[Fact]
public void InsertWithExistData()
{
    var items = GenerateItems(10);

    items[0].Id = (int)insert.AppendData(items[0]).ExecuteIdentity();

    Assert.Equal(0, insert.AppendData(items[0]).ExecuteAffrows());
}

预期item.Id > 0的时候,应该是会跳过吧?
或者是可配置?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions