Ejemplo n.º 1
0
 public static Info SampleInfo() => new Info
 {
     LineSide       = LineSide.Right,
     ConditionStart = 1,
     ConditionEnd   = 2,
     StringLabel    = 3,
     StringIndex    = 4,
     Frames         = new List <Frame>()
     {
         FrameTests.SampleFrame()
     }
 };
Ejemplo n.º 2
0
 public static IComparisionTestCase <Info>[] NotEqualObjectsTestCases() => new IComparisionTestCase <Info>[]
 {
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.LineSide = LineSide.Left),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.ConditionStart++),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.ConditionEnd++),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.StringLabel += 1),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.StringIndex++),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.Frames = null),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.Frames.Clear()),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.Frames[0] = null),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.Frames[0].ToaAnimation++),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.Frames.Add(null)),
     ComparisionTestCase.CompareTwoNotEqualObjects(supplier: SampleInfo, updater: info => info.Frames.Add(FrameTests.SampleFrame())),
     ComparisionTestCase.CompareTwoNotEqualObjects(
         supplier: () => SampleInfo().Also(info => info.Frames.Clear()),
         updater: info => info.Frames = null
         ),
     ComparisionTestCase.CompareNotNullObjectAgainstNull(SampleInfo())
 };