Ejemplo n.º 1
0
        public void GetName()
        {
            //  arrange
            _engine1 = A.Fake <ISearchEngine>(c => c.WithAttributes(() => new SearchEngineMetadataAttribute(nameof(_engine1), "")));
            _engine1.GetName().Should().Be(nameof(_engine1));
            _engine2 = A.Fake <ISearchEngine>(c => c.WithAttributes(() => new SearchEngineMetadataAttribute(nameof(_engine2), "")));
            _engine3 = A.Fake <ISearchEngine>(c => c.WithAttributes(() => new SearchEngineMetadataAttribute(nameof(_engine3), "")));

            //  assert
            _engine1.GetName().Should().Be(nameof(_engine1));
            _engine2.GetName().Should().Be(nameof(_engine2));
            _engine3.GetName().Should().Be(nameof(_engine3));
        }