📜  c# xunit 理论类数据模型 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.760000             🧑  作者: Mango

代码示例2
public class CarClassData : IEnumerable
    {
        public IEnumerator GetEnumerator()
        {
            yield return new object[] {
                new Car
                {
                  Id=1,
                  Price=36000000,
                  Manufacturer = new Manufacturer
                  {
                    Country="country",
                    Name="name"
                  }
                }
            };
        }
        IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
    }