コード例 #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");
        }