尝试比较具有单个私有字段的对象 像这样的对象: public struct A private readonly byte[] bytes;
var b = new A(new byte[] { 1, 2, 3 });
a.Should().BeEquivalentTo在不覆盖Equals的情况下,С是否可以获得肯定的<
我定义了一个类User,它有一个私有字段: private name: string = 'name'}function testUser(user: User) {我不想创建User实例,而是使用一个对象来模拟它: name: 'new-name',
helloprivate in type 'User' but not