예제 #1
0
    public void TypeAndMethodNameTest()
    {
        var input = @"   at EveryLine.SearchCodeElementsUC.SearchCodeElementsUC_Loaded(Object sender, RoutedEventArgs e) in E:\Documents\vs\Projects\_Selling\EveryLine\EveryLine\UC\EveryLineUC.xaml.cs:line 362";

        string type, methodName;

        Exc.TypeAndMethodName(input, out type, out methodName);

        Assert.Equal("EveryLine.SearchCodeElementsUC", type);
        Assert.Equal("SearchCodeElementsUC_Loaded", methodName);
    }