Skip to content

实体类中的只读字段 在Test中也会生成并被赋值,从而报错 #654

@pelva

Description

@pelva

例如
public class SoftwareVersion : BasePoco
{

public byte? Major { get; set; }
public string sMajor => Major == null ? "FF" : Major.ToString();
public byte? Minor { get; set; }
public string sMinor => Minor == null ? "FF" : Minor.ToString();

}
sMajor 在Test 测试工程中会被赋值

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions