Пример #1
0
        private void DisplayAssemblyInfo()
        {
            Assembly            asmb = Assembly.GetExecutingAssembly();
            AssemblyInformation info = new AssemblyInformation(asmb);

            txtOutput.Text = txtOutput.Text + System.Environment.NewLine + info.ToString();
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult result = openFileDialog1.ShowDialog();

            if (result != DialogResult.Cancel)
            {
                txtFileName.Text = openFileDialog1.FileName;;
                AssemblyInformation info = new AssemblyInformation(txtFileName.Text);
                txtOutput.Text = txtOutput.Text + System.Environment.NewLine + info.ToString();
            }
        }
Пример #3
0
        public void ToString_Returns_The_FullName_Of_The_Assembly()
        {
            var sut = new AssemblyInformation(AssemblyUnderTest.Instance);

            sut.ToString().Should().Be(sut.FullName);
        }