コード例 #1
0
        public void Setup()
        {
            m_SurveyFeature = Substitute.For <ISurveyFeature>();
            m_GeoJson       = "GeoJson";

            m_Sut = new SurveyGeoJsonFeature(m_SurveyFeature,
                                             m_GeoJson);
        }
コード例 #2
0
        public void SurveyFeature_ReturnsUnknown_ForUnknown()
        {
            // Arrange
            // Act
            SurveyGeoJsonFeature sut = SurveyGeoJsonFeature.Unknown;

            // Assert
            Assert.True(sut.SurveyFeature.IsUnknown);
        }
コード例 #3
0
        public void SurveyFeatureAsGeoJson_ReturnsEmpty_ForUnknown()
        {
            // Arrange
            // Act
            SurveyGeoJsonFeature sut = SurveyGeoJsonFeature.Unknown;

            // Assert
            Assert.AreEqual(string.Empty,
                            sut.SurveyFeatureAsGeoJson);
        }