Skip to content

Additional checks for FAA0001 #403

@bkqc

Description

@bkqc

[The first 2 were transformed by FAA0003 but I unfortunately didn't keep the original form]

  • (model.Items.Count == 0).Should().BeTrue();
    • model.Items.Should().BeEmpty()
  • (model.Amount > 0).Should().BeTrue();
    • model.Amount.Should().BePositive();
  • model.Items.Exists(x => x.Amout == 300).Should().BeTrue();
    • model.Items.Should().Contain(x => x.Amount == 300);
  • model.Items.ToList().Exists(x => x == "444555666").Should().BeTrue();
    • model.Items.Should().Contain(x => x == "444555666");
  • Assert.IsTrue(dict.Count == 2); transformed to (dict.Count == 2).Should().BeTrue(); by FAA0003
    • dict.Should().HaveCount(2);
  • Assert.IsTrue(dict[Ui.Libel1] == Controleur.PremierDuMois); transformed to (dict[Ui.Libel1] == Controleur.PremierDuMois).Should().BeTrue(); by FAA0003
    • dict.Should().ContainKey(Ui.Libel1).WhoseValue.Should().Be(Controleur.PremierDuMois);
  • model.IsSomething.Should().Be(true);
    • model.IsSomething.Should().BeTrue();

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