Exemplo n.º 1
0
 protected override void CreateConstraint(INegatableArgumentConstraintManager <IEnumerable <object> > scope)
 {
     scope.Contains(10);
 }
Exemplo n.º 2
0
 protected override void CreateConstraint(INegatableArgumentConstraintManager <string> scope)
 {
     scope.Contains("bar");
 }
Exemplo n.º 3
0
        protected override void CreateConstraint(INegatableArgumentConstraintManager <string> scope)
        {
#pragma warning disable CA1307 // Specify StringComparison
            scope.Contains("bar");
#pragma warning restore CA1307 // Specify StringComparison
        }
 protected override void CreateConstraint(INegatableArgumentConstraintManager <string> scope)
 {
     scope.Contains("BAR", StringComparison.OrdinalIgnoreCase);
 }