예제 #1
0
        public static void Should_ReturnDefaultCameraType_IfStringDoesNotMatch()
        {
            var cameraType = "obviouslyNotAValidOne";
            var camera     = CameraType.FromString(cameraType);

            Assert.Equal(default, camera);
예제 #2
0
        public static void Should_ReturnCameraTypeFromString(string cameraType)
        {
            var camera = CameraType.FromString(cameraType);

            Assert.Equal(cameraType, camera.ToString());
        }