/Source/Examples/Example.UsingExternalFile/UsingExternalFileSpecs.cs

https://github.com/machine/machine.specifications · C# · 15 lines · 12 code · 3 blank · 0 comment · 0 complexity · 3cec16dd873a3145c5d0bfe539d4307e MD5 · raw file

  1. using System.IO;
  2. using FluentAssertions;
  3. using Machine.Specifications;
  4. namespace Example.UsingExternalFile
  5. {
  6. [Subject("External resources usage")]
  7. public class when_using_file_copied_to_assembly_output_directory
  8. {
  9. It should_be_able_to_locate_it_by_relative_path = () =>
  10. File.Exists("TestData.txt").Should().BeTrue();
  11. }
  12. }