Пример #1
0
        public void PropertyAnnotator_WithReadonlyPropertyInInterface_DoesNotAnnotateNullable()
        {
            var(semantic, syntax) = CompiledSourceFileProvider.CompileInNameSpace("TestNamespace",
                                                                                  @"public interface ITest
{
  string Property { get; }
}");
            var annotator = new PropertyNullAnnotator(semantic);

            var annotated = annotator.Visit(syntax);

            Assert.That(annotated, Is.EqualTo(syntax));
        }