PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/ExpressionWalker.Tests/ConsoleWriterObserverSpecs/When_two_expression_infos_are_different_instances.cs

https://github.com/CraftyFella/ExpressionWalker
C# | 20 lines | 16 code | 4 blank | 0 comment | 0 complexity | 98762cccdbdde182c41d56cdc91c2313 MD5 | raw file
  1. using FluentAssertions;
  2. using Machine.Fakes;
  3. using Machine.Specifications;
  4. namespace ExpressionWalker.Tests.ConsoleWriterObserverSpecs
  5. {
  6. public class When_observing_an_expression_info : WithSubject<ConsoleWriterObserver>
  7. {
  8. Establish context = () =>
  9. {
  10. _first = new ExpressionInfo();
  11. };
  12. Because of = () => Subject.OnNext(_first);
  13. It writes_expression_type = () => The<IWriter>().WasToldTo(x => x.Write(_first));
  14. private static ExpressionInfo _first;
  15. }
  16. }