예제 #1
0
        /// <summary>
        /// Called when "Share" menu item is selected
        /// </summary>
        /// <returns>task to wait for</returns>
        private async Task OnShareLocationAsync()
        {
            string text    = "Share this location with...";
            string message = DataFormatter.FormatLocationShareText(this.location);

            await App.ShareMessageAsync(text, message);
        }
예제 #2
0
        public void TestFormatLocationShareText()
        {
            // set up
            var location = UnitTestHelper.GetDefaultLocation();

            // run
            string text = DataFormatter.FormatLocationShareText(location);

            // check
            Assert.IsTrue(text.Length > 0, "formatted text must not be empty");
        }