CSF.Screenplay.NUnit.ScenarioAdapter.GetScenario(NUnit.Framework.Interfaces.IPropertyBag)

Here are the examples of the csharp api CSF.Screenplay.NUnit.ScenarioAdapter.GetScenario(NUnit.Framework.Interfaces.IPropertyBag) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : ScenarioAdapter.cs
with MIT License
from csf-dev

public static IScenario GetScenario(ITest test)
    {
      var scenario = GetScenario(test.Properties);
      if(scenario != null)
        return scenario;

      var message = String.Format(Resources.ExceptionFormats.TestMustHaveAScenarioInProperties,
                                  nameof(IScenario));
      throw new ArgumentException(message, nameof(test));
    }